package weibo.model;

public class TweetMod {
	
	private int id;
	private int userid;
	private String text;
	private String image1;
	private String image2;
	private String image3;
	private String createdate;
	private String user_head;
	private String user_name;
	private int up=0;
	private int down=0;
	
	public TweetMod(){
		
	}
	
	public TweetMod(int id, int userid, String text, String image1, String image2, String image3, String createdate) {
		super();
		this.id = id;
		this.userid = userid;
		this.text = text;
		this.image1 = image1;
		this.image2 = image2;
		this.image3 = image3;
		this.createdate = createdate;
	}
	public TweetMod(int id, int userid, String text, String image1, String image2, String image3, String createdate,String user_head,String user_name) {
		super();
		this.id = id;
		this.userid = userid;
		this.text = text;
		this.image1 = image1;
		this.image2 = image2;
		this.image3 = image3;
		this.createdate = createdate;
		this.user_head=user_head;
		this.user_name=user_name;
	}
	public TweetMod(int id, int userid, String text, String image1, String image2, String image3, String createdate,String user_head,String user_name,int up,int down) {
		super();
		this.id = id;
		this.userid = userid;
		this.text = text;
		this.image1 = image1;
		this.image2 = image2;
		this.image3 = image3;
		this.createdate = createdate;
		this.user_head=user_head;
		this.user_name=user_name;
		this.up=up;
		this.down=down;
	}
	/*
	 * 简单插入
	 */
	public void TweetInsert(int userid,String text,String image1URL,String image2URL,String image3URL){
		this.userid=userid;
		this.text=text;
		this.image1=image1URL;
		this.image2=image2URL;
		this.image3=image3URL;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getUserid() {
		return userid;
	}
	public void setUserid(int userid) {
		this.userid = userid;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getImage1() {
		return image1;
	}
	public void setImage1(String image1) {
		this.image1 = image1;
	}
	public String getImage2() {
		return image2;
	}
	public void setImage2(String image2) {
		this.image2 = image2;
	}
	public String getImage3() {
		return image3;
	}
	public void setImage3(String image3) {
		this.image3 = image3;
	}
	public String getCreatedate() {
		return createdate;
	}
	public void setCreatedate(String createdate) {
		this.createdate = createdate;
	}

	public String getUser_head() {
		return user_head;
	}

	public void setUser_head(String user_head) {
		this.user_head = user_head;
	}

	public String getUser_name() {
		return user_name;
	}

	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}

	public int getUp() {
		return up;
	}

	public void setUp(int up) {
		this.up = up;
	}

	public int getDown() {
		return down;
	}

	public void setDown(int down) {
		this.down = down;
	}
	
}
